Video Translation (preview:2024-05-20)

2025/06/06 • 6 updated methods

TranslationOperations_ListTranslation (updated)
Description List translation resources.
Reference Link ¶

⚶ Changes

{
  "#id": "TranslationOperations_ListTranslation",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "input": [
              {
                "#name": "sourceLocale",
                "Description": {
                  "new": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts , if not specified, the source locale will be auto-detected from the video file, the auto detect is only supported after version 2025-05-20.",
                  "old": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts."
                }
              },
              {
                "#name": "videoFileUrl",
                "Description": {
                  "new": "Translation video file Azure blob url, .mp4 file format, maxmum 5GB file size and 4 hours video duration. Provide the input media file using either videoFileUrl or audioFileUrl, these parameters are mutually exclusive\u2014only one of them is required. If both are provided, the request will be considered invalid.",
                  "old": "Translation video file url."
                }
              },
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not provided, it will be auto-detected from the video file.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not provided, it will use the language dependent default value.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, the default value is false, it will not burn subtitle to the translated video file.",
                  "old": "Export subtitle in video."
                }
              }
            ],
            "latestIteration": [
              {
                "input": [
                  {
                    "#name": "speakerCount",
                    "Description": {
                      "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Number of speakers in the video."
                    }
                  },
                  {
                    "#name": "subtitleMaxCharCountPerSegment",
                    "Description": {
                      "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Subtitle max display character count per segment."
                    }
                  },
                  {
                    "#name": "exportSubtitleInVideo",
                    "Description": {
                      "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Export subtitle in video."
                    }
                  }
                ]
              }
            ],
            "latestSucceededIteration": [
              {
                "input": [
                  {
                    "#name": "speakerCount",
                    "Description": {
                      "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Number of speakers in the video."
                    }
                  },
                  {
                    "#name": "subtitleMaxCharCountPerSegment",
                    "Description": {
                      "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Subtitle max display character count per segment."
                    }
                  },
                  {
                    "#name": "exportSubtitleInVideo",
                    "Description": {
                      "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                      "old": "Export subtitle in video."
                    }
                  }
                ]
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /translations
{
api-version: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
input:
{
sourceLocale: string ,
targetLocale: string ,
voiceKind: enum ,
videoFileUrl: string ,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
displayName: string ,
description: string ,
createdDateTime: string ,
latestIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
latestSucceededIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
failureReason: string ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
TranslationOperations_GetTranslation (updated)
Description Fetch a translation by ID.
Reference Link ¶

⚶ Changes

{
  "#id": "TranslationOperations_GetTranslation",
  "$responses": {
    "200": {
      "$properties": {
        "input": [
          {
            "#name": "sourceLocale",
            "Description": {
              "new": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts , if not specified, the source locale will be auto-detected from the video file, the auto detect is only supported after version 2025-05-20.",
              "old": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts."
            }
          },
          {
            "#name": "videoFileUrl",
            "Description": {
              "new": "Translation video file Azure blob url, .mp4 file format, maxmum 5GB file size and 4 hours video duration. Provide the input media file using either videoFileUrl or audioFileUrl, these parameters are mutually exclusive\u2014only one of them is required. If both are provided, the request will be considered invalid.",
              "old": "Translation video file url."
            }
          },
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not provided, it will be auto-detected from the video file.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not provided, it will use the language dependent default value.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, the default value is false, it will not burn subtitle to the translated video file.",
              "old": "Export subtitle in video."
            }
          }
        ],
        "latestIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ],
        "latestSucceededIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /translations/{translationId}
{
api-version: string ,
translationId: string ,
}

⚐ Response (200)

{
id: string ,
input:
{
sourceLocale: string ,
targetLocale: string ,
voiceKind: enum ,
videoFileUrl: string ,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
displayName: string ,
description: string ,
createdDateTime: string ,
latestIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
latestSucceededIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
failureReason: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
TranslationOperations_CreateTranslation (updated)
Description Creates a translation.
Reference Link ¶

⚶ Changes

{
  "#id": "TranslationOperations_CreateTranslation",
  "$parameters": {
    "resource": {
      "$properties": {
        "input": [
          {
            "#name": "sourceLocale",
            "Description": {
              "new": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts , if not specified, the source locale will be auto-detected from the video file, the auto detect is only supported after version 2025-05-20.",
              "old": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts."
            }
          },
          {
            "#name": "videoFileUrl",
            "Description": {
              "new": "Translation video file Azure blob url, .mp4 file format, maxmum 5GB file size and 4 hours video duration. Provide the input media file using either videoFileUrl or audioFileUrl, these parameters are mutually exclusive\u2014only one of them is required. If both are provided, the request will be considered invalid.",
              "old": "Translation video file url."
            }
          },
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not provided, it will be auto-detected from the video file.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not provided, it will use the language dependent default value.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, the default value is false, it will not burn subtitle to the translated video file.",
              "old": "Export subtitle in video."
            }
          }
        ],
        "latestIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ],
        "latestSucceededIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "input": [
          {
            "#name": "sourceLocale",
            "Description": {
              "new": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts , if not specified, the source locale will be auto-detected from the video file, the auto detect is only supported after version 2025-05-20.",
              "old": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts."
            }
          },
          {
            "#name": "videoFileUrl",
            "Description": {
              "new": "Translation video file Azure blob url, .mp4 file format, maxmum 5GB file size and 4 hours video duration. Provide the input media file using either videoFileUrl or audioFileUrl, these parameters are mutually exclusive\u2014only one of them is required. If both are provided, the request will be considered invalid.",
              "old": "Translation video file url."
            }
          },
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not provided, it will be auto-detected from the video file.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not provided, it will use the language dependent default value.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, the default value is false, it will not burn subtitle to the translated video file.",
              "old": "Export subtitle in video."
            }
          }
        ],
        "latestIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ],
        "latestSucceededIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "input": [
          {
            "#name": "sourceLocale",
            "Description": {
              "new": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts , if not specified, the source locale will be auto-detected from the video file, the auto detect is only supported after version 2025-05-20.",
              "old": "The source locale of the video file. Locale code follows BCP-47. You can find the text to speech locale list here https://learn.microsoft.com/azure/ai-services/speech-service/language-support?tabs=tts."
            }
          },
          {
            "#name": "videoFileUrl",
            "Description": {
              "new": "Translation video file Azure blob url, .mp4 file format, maxmum 5GB file size and 4 hours video duration. Provide the input media file using either videoFileUrl or audioFileUrl, these parameters are mutually exclusive\u2014only one of them is required. If both are provided, the request will be considered invalid.",
              "old": "Translation video file url."
            }
          },
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not provided, it will be auto-detected from the video file.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not provided, it will use the language dependent default value.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, the default value is false, it will not burn subtitle to the translated video file.",
              "old": "Export subtitle in video."
            }
          }
        ],
        "latestIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ],
        "latestSucceededIteration": [
          {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /translations/{translationId}
{
api-version: string ,
translationId: string ,
Operation-Id: string ,
resource:
{
id: string ,
input:
{
sourceLocale: string ,
targetLocale: string ,
voiceKind: enum ,
videoFileUrl: string ,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
displayName: string ,
description: string ,
createdDateTime: string ,
latestIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
latestSucceededIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
failureReason: string ,
}
,
}

⚐ Response (200)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
id: string ,
input:
{
sourceLocale: string ,
targetLocale: string ,
voiceKind: enum ,
videoFileUrl: string ,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
displayName: string ,
description: string ,
createdDateTime: string ,
latestIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
latestSucceededIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
failureReason: string ,
}
,
}

⚐ Response (201)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
id: string ,
input:
{
sourceLocale: string ,
targetLocale: string ,
voiceKind: enum ,
videoFileUrl: string ,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
displayName: string ,
description: string ,
createdDateTime: string ,
latestIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
latestSucceededIteration:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
failureReason: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
IterationOperations_ListIteration (updated)
Description List Iteration resources.
Reference Link ¶

⚶ Changes

{
  "#id": "IterationOperations_ListIteration",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "input": [
              {
                "#name": "speakerCount",
                "Description": {
                  "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Number of speakers in the video."
                }
              },
              {
                "#name": "subtitleMaxCharCountPerSegment",
                "Description": {
                  "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Subtitle max display character count per segment."
                }
              },
              {
                "#name": "exportSubtitleInVideo",
                "Description": {
                  "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
                  "old": "Export subtitle in video."
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /translations/{translationId}/iterations
{
api-version: string ,
translationId: string ,
top: integer ,
skip: integer ,
maxpagesize: integer ,
}

⚐ Response (200)

{
value:
[
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
IterationOperations_GetIteration (updated)
Description Fetch a iteration by ID.
Reference Link ¶

⚶ Changes

{
  "#id": "IterationOperations_GetIteration",
  "$responses": {
    "200": {
      "$properties": {
        "input": [
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Export subtitle in video."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /translations/{translationId}/iterations/{iterationId}
{
api-version: string ,
translationId: string ,
iterationId: string ,
}

⚐ Response (200)

{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}
IterationOperations_CreateIteration (updated)
Description Creates an iteration.
Reference Link ¶

⚶ Changes

{
  "#id": "IterationOperations_CreateIteration",
  "$parameters": {
    "resource": {
      "$properties": {
        "input": [
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Export subtitle in video."
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "input": [
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Export subtitle in video."
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "input": [
          {
            "#name": "speakerCount",
            "Description": {
              "new": "Number of speakers in the video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Number of speakers in the video."
            }
          },
          {
            "#name": "subtitleMaxCharCountPerSegment",
            "Description": {
              "new": "Subtitle max display character count per segment, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Subtitle max display character count per segment."
            }
          },
          {
            "#name": "exportSubtitleInVideo",
            "Description": {
              "new": "Export subtitle in video, if not specified, it will inherit the value defined in the input of translation creation.",
              "old": "Export subtitle in video."
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /translations/{translationId}/iterations/{iterationId}
{
api-version: string ,
translationId: string ,
iterationId: string ,
Operation-Id: string ,
resource:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
}

⚐ Response (200)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
}

⚐ Response (201)

{
$headers:
{
operation-location: string ,
}
,
$schema:
{
id: string ,
input:
{
webvttFile:
{
url: string ,
kind: enum ,
}
,
speakerCount: integer ,
subtitleMaxCharCountPerSegment: integer ,
exportSubtitleInVideo: boolean ,
}
,
description: string ,
status: enum ,
failureReason: string ,
createdDateTime: string ,
lastActionDateTime: string ,
result:
{
translatedVideoFileUrl: string ,
sourceLocaleSubtitleWebvttFileUrl: string ,
targetLocaleSubtitleWebvttFileUrl: string ,
metadataJsonWebvttFileUrl: string ,
reportFileUrl: string ,
}
,
}
,
}

⚐ Response (default)

{
$headers:
{
x-ms-error-code: string ,
}
,
$schema:
{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
innererror:
{
code: string ,
innererror: string ,
}
,
}
,
}
,
}